const crypto = require('crypto')

module.exports = {
  encrypt(content = '') {
    return crypto.createHmac('sha256', this.app.config.keys)
                 .update(content)
                 .digest('hex')
  },
}